package cn.mju.tankfighterbackend.service;

import jakarta.transaction.Transactional;
import org.springframework.stereotype.Service;

@Service
public class TransactionalService {
    @Transactional
    public void invoke(Runnable runnable){
        runnable.run();
    }
}
